﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PDM.Packet.RequestPacket;
using __Able.Network;
using __Able.Network.Connection;
using System.Net;
using System.Net.Sockets;
using __Able.Network.Utils;

namespace PDM.AppTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string id = "7A6DB307-5280-4C1A-90F9-54F13422F32A";

            byte[] bt = Util.GetBytes(id);
            string d = Util.GetString(bt);




            //string msg = Console.ReadLine();

            //while (!string.IsNullOrEmpty(msg))
            //{
            //    IPEndPoint ServerIPEP = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 12347);
            //    Socket c = new Socket(ServerIPEP.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
            //    c.Connect((EndPoint)ServerIPEP);


            //    c.Send(System.Text.Encoding.Default.GetBytes(msg));

            //    byte[] data = new byte[2048];
            //    while (true)
            //    {
            //        int rect = c.Receive(data);
            //        byte[] chat = new byte[rect];
            //        Buffer.BlockCopy(data, 0, chat, 0, rect);
            //        Console.WriteLine("Received:\n{0}\n", System.Text.Encoding.Default.GetString(chat));
            //    }
            //    msg = Console.ReadLine();
            //}
            Console.ReadKey();
        }
    }
}
